function feedLogin() {
	sendFeed(0, '{actor}需要更多的好友一起玩51养鱼.', '{actor} 已经拥有了一个漂亮的海底和几条超酷的鱼，快来看一看吧',
			'/images/thumbnail.png');
}

function feedBuyFish(mid, name) {
	if (mid >= 5 && mid <= 10) {
		sendFeed(mid, '{actor}刚刚买了一条' + name + '！', '一条新鱼！' + name + "将给{actor}带来更多的乐趣",
				'/images/thumbnail.png');
	}
}

function feedMateRare(mid, name) {
	sendFeed(31, name + '! ' + name + '! 真是不可思议，{actor}竟然配出了' + name, '太牛了! {actor}经过不懈的努力终于配出了'
			+ name + '。' + name + '将给Ta带来更多的财富！', '/images/thumbnail.png');
}

function feedAddCove(count) {
	sendFeed(32, '{actor}得到了一个新的海底!', '{actor}刚刚开启了一个新的海底，现在Ta可以养更多的鱼啦！', '/images/thumbnail.png');
}

function feedUpgradeCove() {
	sendFeed(33, '{actor}扩大了海底的养鱼数量', '你还等什么呢？快来看看Ta买了什么新鱼吧', '/images/thumbnail.png');
}

function feedDecorate() {
	sendFeed(34, '{actor} 刚刚装饰了Ta的海底', '快来看看{actor}与众不同的海底世界吧~~', '/images/thumbnail.png');
}

function feedFreeFish(mid, name) {
	sendFeed(35, '鱼大不中留啊，{actor}的' + name + "游向了远海", '{actor}刚刚把自己养大的' + name + "送到了远海。",
			'/images/thumbnail.png');
}

function feedLevelUp(level) {
	sendFeed(36, '升级啦！！升级啦！！', "{actor}刚刚升到了" + level + "级，现在Ta可以买更多高级的鱼啦~~",
			'/images/thumbnail.png');
}
var noticeSend = false;

//fishType: 0是普通非卖鱼，1是真鱼
function notifyMate(webId, name, fishType) {
	if(noticeSend==false) {
		if(fishType==0) {
			$.getScript(_appUrl+"/send-notice.fish?webId="+webId+"&type=3"+"&name="+name);
			noticeSend=true;
		} else if(fishType == 1) {
			$.getScript(_appUrl+"/send-notice.fish?webId="+webId+"&type=4"+"&name="+name);
			noticeSend=true;
		}
	}
}

//冻鱼和偷鱼一次flash加载只通知一次web
function notifyFreeze(webId) {
	if(noticeSend==false) {
		$.getScript(_appUrl+"/send-notice.fish?webId="+webId+"&type=2");
		noticeSend=true;
	}
}

function notifySteal(webId) {
	if(noticeSend==false) {
		$.getScript(_appUrl+"/send-notice.fish?webId="+webId+"&type=1");
		noticeSend=true;
	}
}
